package com.jsnkj.basic.bean

import com.ads.admob.bean.FeedPosition
import com.hzhj.openads.domain.HJNativeAdData
import java.io.Serializable

class ReadPacketMessageBean : Serializable {

    var id: String? = null         //id
    var userName: String? = null   //用户名称
    var avatar: String? = null     //头像
    var sendMessage: String? = null    //发送消息文本
    var sendMessageTime: Long = 0L    //发送消息文本

    var feedPosition: FeedPosition? = null    //发送消息文本

    var hjNativeAdData : HJNativeAdData?= null //灰鲸广告

    var messageType: Int = 0    //发送消息类型 ： 0：正常消息 1：广告 2：红包

    private var isSender = false // 表示消息是发送的还是接收的

    constructor(
        id: String = "",
        userName: String = "",
        avatar: String = "",
        sendMessage: String = "",
        sendMessageTime: Long = 0,
        messageType: Int = 0,
        isSender: Boolean = false,
        position: FeedPosition? = null
    ) {
        this.id = id
        this.userName = userName
        this.avatar = avatar
        this.sendMessage = sendMessage
        this.sendMessageTime = sendMessageTime
        this.messageType = messageType
        this.isSender = isSender
        this.feedPosition = position
    }

    override fun toString(): String {
        return "ReadPacketMessageBean(id=$id, userName=$userName, avatar=$avatar, sendMessage=$sendMessage, sendMessageTime=$sendMessageTime, messageType=$messageType, isSender=$isSender)"
    }


}